Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


These support forums are now closed for new topics and comments.
Please head on over to http://eureka.ucommerce.net/ for support.

  • Nick 1 post 21 karma points
    Nov 07, 2012 @ 22:29
    Nick
    0

    Product definitions and Error parsing XSLT file: \xslt\Category[XSLT].xslt

    Hi,

    I have set up the demo store and everything seemed to be working fine.

    Then I created my own product definitions and added them to my store and I'm now getting a

    Error parsing XSLT file: \xslt\Category[XSLT].xslt

    Any ideas - I'm guessing I have missed a step!

    Nick

  • Jan Skovgaard 11280 posts 23678 karma points MVP 11x admin c-trib
    Nov 08, 2012 @ 17:55
    Jan Skovgaard
    0

    Hi Nick and welcome to our :)

    Could you try adding ?umbdebugshowtrace=1 to the page where you're seeing this error? This will give you a trace log where any potential error message will be marked with red. Please copy that text in here.

    Also what version of Umbraco are you using and what version of uCommerce did you install?

    /Jan

  • Søren Spelling Lund 1797 posts 2786 karma points
    Nov 09, 2012 @ 13:23
    Søren Spelling Lund
    0

    Hi Nick,

    I believe a change in one of the latest Umbraco version makes the GetMedia API fail for ids that can't be converted to ints.

    Try changing the code that displays images to include a test to check whether it's actually a number like so (we'll add this to the store package too):

    <img alt="Image">
      <xsl:attribute name="src">
        <xsl:if test="number(@thumbnailImage) = number(@thumbnailImage)">
          <xsl:value-of select="umbraco.library:GetMedia(@thumbnailImage, true())/umbracoFile"/>  
        </xsl:if>
      </xsl:attribute>
    </img>

    Hope this helps.

Please Sign in or register to post replies

Write your reply to:

Draft